package tianrun.ziguan.api.calculate.config.dto.response;

import java.util.Objects;

public class MoldDesc {
    private String mold;
    private String name;

    public MoldDesc() {
    }

    public MoldDesc(String mold, String name) {
        this.mold = mold;
        this.name = name;
    }

    public String getMold() {
        return mold;
    }

    public void setMold(String mold) {
        this.mold = mold;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MoldDesc moldDesc = (MoldDesc) o;
        return Objects.equals(mold, moldDesc.mold) && Objects.equals(name, moldDesc.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(mold, name);
    }

    @Override
    public String toString() {
        return "MoldDesc{" +
                "mold='" + mold + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
